package com.xnew.provider;

import com.xnew.api.SysFileInfoApi;
import com.xnew.model.params.SysFileInfoParam;
import com.xnew.model.result.SysFileInfoResult;
import com.xnew.service.SysFileInfoService;
import com.xnewtech.xplatform.swan.model.page.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 文件信息表服务提供者
 *
 * @author shj
 * @Date 2021-08-09 15:49:46
 */
@RestController
public class SysFileInfoProvider implements SysFileInfoApi {


    @Autowired
    private SysFileInfoService sysFileInfoService;

    /**
     * 新增
     *
     * @author shj
     * @Date 2021-08-09
     */
    @Override
    public void add(@RequestBody SysFileInfoParam param) {
        sysFileInfoService.add(param);
    }

    /**
     * 修改
     *
     * @author shj
     * @Date 2021-08-09
     */
    @Override
    public void delete(@RequestBody SysFileInfoParam param) {
        sysFileInfoService.delete(param);
    }

    /**
     * 删除
     *
     * @author shj
     * @Date 2021-08-09
     */
    @Override
    public void update(@RequestBody SysFileInfoParam param) {
        sysFileInfoService.update(param);
    }

    /**
     * 查询单条详情
     *
     * @author shj
     * @Date 2021-08-09
     */
    @Override
    public SysFileInfoResult findBySpec(@RequestBody SysFileInfoParam param) {
        return sysFileInfoService.findBySpec(param);
    }

    /**
     * 查询列表
     *
     * @author shj
     * @Date 2021-08-09
     */
    @Override
    public List<SysFileInfoResult> findListBySpec(@RequestBody SysFileInfoParam param) {
        return sysFileInfoService.findListBySpec(param);
    }

    /**
     * 分页查询列表
     *
     * @author shj
     * @Date 2021-08-09
     */
    @Override
    public PageResult<SysFileInfoResult> findPageBySpec(@RequestBody SysFileInfoParam param) {
        return sysFileInfoService.findPageBySpec(param);
    }

}
